package com.baizhi.cmfz.dao;

import com.baizhi.cmfz.entity.Article;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleDao extends BaseMapper<Article> {

    public List<Article> selectByPageArticle(@Param("offset") int offset,@Param("limit") int limit,@Param("name") String name);

    public  int selectTotalCountArticle(@Param("name") String name);

    int insertArticle(Article article);

    public  int updateArticle(Article article);

    public  Article selectOne(Integer id);

    public  int deleteArticle(Integer id);
}
